package com.paradogs.framework.core.msg.route;

import com.paradogs.framework.core.msg.PRMsg;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.lang.reflect.Method;

/**
 * @author: yumi
 * @date: 2023/8/1  15:47
 * @Description: cmd 消息映射
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MsgMapping {

    /**
     * 参数消息类型
     */
    private Class<?> msgClass;

    /**
     * 对应方法
     */
    private Method method;

    /**
     * 是否异步
     */
    private boolean async;

}
